﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace WebApi333.Data
{
    public class Admin2500Context:DbContext
    {
        private void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var connectionString = "server =.; database = Admin10024; uid = sa; pwd = 123456";
            optionsBuilder.UseSqlServer(connectionString);
        }
        public Dbset<Users> Users { get; set; } 
        public DbSet<Roles> Roles { get; set; }

        public DbSet<Logs> Logs { get; set; }
    }
}
